﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace TTApp.Phone.Silverlight.Hexagons
{
    /// <summary>
    /// Nguồn cho đối tượng Board với nội dung là các HexagonSlot.
    /// </summary>
    public class SlottedBoard : BoardSource
    {
        #region //----------------------------- Class Private Fields --------------------------------------//
        private int _horizontalHexagonSlotNumber;
        private int _verticalHexagonSlotNumber;
        private HexagonSlotCollection _hexagonSlots;
        #endregion

        #region //----------------------------- Class Public Constructors ---------------------------------//
        /// <summary>
        /// Tạo một đối tượng mới thuộc lớp SlottedBoard.
        /// </summary>
        public SlottedBoard()
        {
            _hexagonSlots = new HexagonSlotCollection();
        }
        #endregion

        #region //----------------------------- Class CLR Properties --------------------------------------//
        /// <summary>
        /// Số lượng HexagonSlot theo chiều ngang.
        /// </summary>
        public int HorizontalHexagonSlotNumber
        {
            get { return _horizontalHexagonSlotNumber; }
            set { _horizontalHexagonSlotNumber = value; }
        }

        /// <summary>
        /// Số lượng HexagonSlot theo chiều dọc.
        /// </summary>
        public int VerticalHexagonSlotNumber
        {
            get { return _verticalHexagonSlotNumber; }
            set { _verticalHexagonSlotNumber = value; }
        }

        /// <summary>
        /// Lấy tập các HexagonSlot.
        /// </summary>
        public HexagonSlotCollection HexagonSlots
        {
            get { return _hexagonSlots; }
        }
        #endregion
    }
}
